package cluster.clustersingleton

import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport
import spray.json.DefaultJsonProtocol

/**
  * Created by shouf on 2016/5/19.
  */
final case class Posts(text:String)


trait JsonSupport extends SprayJsonSupport with DefaultJsonProtocol{
  implicit val postsFormat = jsonFormat1(Posts)
}